using System.Collections;
using Microsoft.Xna.Framework.Graphics;
using Tomahawk.Runtime.Scene;

namespace Tomahawk.Runtime.Rendering
{
    public class CameraManager
    {
        private Hashtable myCameras = new Hashtable();

        private Camera activeCamera;

        public Camera ActiveCamera 
        { 
            get { return activeCamera; } 
        }

        public void AddCamera(Camera newCamera, string cameraLabel) 
        { 
            myCameras.Add(cameraLabel, newCamera); 
        }

        public Camera GetCamera(string cameraLabel)
        {
            return (Camera)myCameras[cameraLabel];
        }

        public void SetActiveCamera(string cameraLabel) 
        { 
            if (myCameras.ContainsKey(cameraLabel))
                activeCamera = myCameras[cameraLabel] as Camera; 
        } 

        /*
        public void UpdateViewports(Viewport newViewport) 
        {
            foreach (CameraSceneNode camera in myCameras.Values) 
            { 
                camera.SetViewport(newViewport); 
            }
        }
        */

    }

}
